package com.apartment.sevice;

import com.apartment.data.entity.Admin;
import org.springframework.ui.Model;

import java.util.List;

/**
 * Author : xuzhiyong
 * Date : 2022/5/30 11:39
 */
public interface AdminService {
    Admin adminLogin(String username, String password);

    List<Admin> findAllAdmin();

    boolean addAdmin(Admin admin);

    boolean updateAdmin(Admin admin);

    boolean deleteAdminById(Integer id);

    Admin findAdminById(Integer id);

    List<Admin> findAdminByUsername(String username);

    Admin findAdminByUsername1(String username);

    Admin findAdminByMail(String mail);
}
